﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using music.DataAccess;
using music.Models;

namespace music.Facades
{
    public class MusicFacade
    {
        public static void UpdateAlbum(Models.Album album)
        {
            Queries queries = new Queries();
            queries.UpdateAlbum(album);
            queries.SubMitChanges();
        }
        public static Models.Album GetAlbumById(long albumId)
        {
            return new Queries().GetAlbumById(albumId);
        }
        public static AlbumViewModel GetAlbumViewModel(string genre)
        {
            return new Queries().GetAlbumByGenreName(genre);
        }
        public static GenreViewModel GetGenreViewModel()
        {
            //Queries queries = new Queries();
            //var model = queries.GetGenreModel();
            //return model;
            return new Queries().GetGenreModel();
        }
    }
}
